﻿using System;
using System.Collections.Generic;
using Sklad1_2.Default;

namespace Sklad1_2.Add.Update
{
    public partial class UpdateAngar : Defaultform
    {
        public UpdateAngar()
        {
            InitializeComponent();
        }
        public UpdateAngar(List<string> item):base(item)
        {
            InitializeComponent();
            textBox1.Text = item[1];
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length>0)
            {
                ABase.UpdateValueAngar(textBox1.Text,id);
                Close();
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
